/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package asa;

/**
 *
 * @author Mickael
 */
public class ASAExprEga extends ASAExpr {

    private ASAExpr e1, e2;

    public ASAExprEga(ASAExpr e1, ASAExpr e2) {
        this.e1 = e1;
        this.e2 = e2;
    }

    @Override
    public int evalue() {
        if (e1.evalue() == e2.evalue()) {
            return 1;
        } else {
            return 0;
        }
    }

    @Override
    public ASAExpr getExpr1() {
        return e1;
    }

    @Override
    public ASAExpr getExpr2() {
        return e2;
    }
    
    
    
    @Override
    public String getLabelExplorateur() {
        return "Egal-Egal";
    }
}
